public class Enterprise {
	public static void main(String args[])
	{
	  	try{
			Director d=Director.getInstance();
			
			
			  Muncitor[] employee = new Muncitor[5];
			    employee[0] = new Comercial("Popa", 500, 8000); 
			    employee[1] = new Comercial("Pop", 500, 1230);   
			    employee[2] = new Comercial("Ionescu", 600, 3100);
			    employee[3] = new MuncitorPlataCuOra("Amariei", 30, 200, 25);
			    
			    System.out.println("Angajatii: ");
				System.out.println(d);
			    for(int i=0;i<employee.length;i++)
			    {
			    	d.adaugaMuncitor(employee[i]);
			    	employee[i].setD(d);
			    }
			    
			    for(int i=0;i<employee.length;i++)
			    {
			    	System.out.println(employee[i]);
			    }
			    
			}
			catch(Exception e){
				e.printStackTrace();
			}
	}

}
